package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_OnlineAssembleErrorItem", catalog="Id")
public class TccOnlineAssembleErrorItem extends BaseEntity<TccOnlineAssembleErrorItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="SubAssembleLostNum", nameJava="subAssembleLostNum", typeDataBase="int")
	private Integer subAssembleLostNum;
	@YsField(nameDataBase="SubCode", nameJava="subCode", typeDataBase="varchar")
	private String subCode;
	@YsField(nameDataBase="AssembleItemId", nameJava="assembleItemId", typeDataBase="bigint")
	private Long assembleItemId;
	@YsField(nameDataBase="SubAmount", nameJava="subAmount", typeDataBase="decimal")
	private BigDecimal subAmount;
	@YsField(nameDataBase="InStorageBid", nameJava="inStorageBid", typeDataBase="varchar")
	private String inStorageBid;
	@YsField(nameDataBase="LogisticsMode", nameJava="logisticsMode", typeDataBase="varchar")
	private String logisticsMode;
	@YsField(nameDataBase="TrackingNumber", nameJava="trackingNumber", typeDataBase="varchar")
	private String trackingNumber;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccOnlineAssembleErrorItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TccOnlineAssembleErrorItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Integer getSubAssembleLostNum() {
		return subAssembleLostNum;
	}
	public TccOnlineAssembleErrorItem setSubAssembleLostNum(Integer subAssembleLostNum) {
		this.subAssembleLostNum = subAssembleLostNum;
		return this;
	}
	public String getSubCode() {
		return subCode;
	}
	public TccOnlineAssembleErrorItem setSubCode(String subCode) {
		this.subCode = subCode;
		return this;
	}
	public Long getAssembleItemId() {
		return assembleItemId;
	}
	public TccOnlineAssembleErrorItem setAssembleItemId(Long assembleItemId) {
		this.assembleItemId = assembleItemId;
		return this;
	}
	public BigDecimal getSubAmount() {
		return subAmount;
	}
	public TccOnlineAssembleErrorItem setSubAmount(BigDecimal subAmount) {
		this.subAmount = subAmount;
		return this;
	}
	public String getInStorageBid() {
		return inStorageBid;
	}
	public TccOnlineAssembleErrorItem setInStorageBid(String inStorageBid) {
		this.inStorageBid = inStorageBid;
		return this;
	}
	public String getLogisticsMode() {
		return logisticsMode;
	}
	public TccOnlineAssembleErrorItem setLogisticsMode(String logisticsMode) {
		this.logisticsMode = logisticsMode;
		return this;
	}
	public String getTrackingNumber() {
		return trackingNumber;
	}
	public TccOnlineAssembleErrorItem setTrackingNumber(String trackingNumber) {
		this.trackingNumber = trackingNumber;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccOnlineAssembleErrorItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccOnlineAssembleErrorItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccOnlineAssembleErrorItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccOnlineAssembleErrorItem tccOnlineAssembleErrorItem(
		String pbid,
		Integer subAssembleLostNum,
		String subCode,
		Long assembleItemId,
		BigDecimal subAmount,
		String inStorageBid,
		String logisticsMode,
		String trackingNumber,
		Integer status
			) {
		TccOnlineAssembleErrorItem entity = new TccOnlineAssembleErrorItem();
		entity.setPbid(pbid);
		entity.setSubAssembleLostNum(subAssembleLostNum);
		entity.setSubCode(subCode);
		entity.setAssembleItemId(assembleItemId);
		entity.setSubAmount(subAmount);
		entity.setInStorageBid(inStorageBid);
		entity.setLogisticsMode(logisticsMode);
		entity.setTrackingNumber(trackingNumber);
		entity.setStatus(status);
		return entity;
	}
}